﻿using System;
using TtfLibrary.CommonStructures;

namespace TtfLibrary.Tables
{
    public class OttUnknown : IAfterReadTable, IAfterWrite
    {
        [TtfStop]
        public byte[] Content;

        public void AfterRead(TtfStructureReader reader, TtfTableDictionary tableDict)
        {
            Content = reader.ReadBytes((int)tableDict.Length);
        }

        public void AfterWrite(StructureWriter writer)
        {
            writer.WriteBytes(Content);
        }
    }
}
